package com.yule.system.home;

import com.yule.system.dao.SystemRoleMenuDao;
import com.yule.system.model.SystemRoleMenu;
import com.yule.system.model.SystemRoleMenuExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemRoleMenuHome {

    @Autowired
    private SystemRoleMenuDao systemRoleMenuDao;

    public List<SystemRoleMenu> findList(SystemRoleMenuExample systemRoleMenuExample){
        return systemRoleMenuDao.selectByExample(systemRoleMenuExample);
    }

    public int save(SystemRoleMenu model){
        int id = systemRoleMenuDao.insertSelective(model);
        return id;
    }
}
